import {createWebHashHistory, createRouter} from "vue-router";

const routes = [
    {
        path: '/',
        redirect: '/ds'
    },
    // {
    //     path: '/login',
    //     name: 'Login',
    //     component: () => import('../Login.vue')
    // },
    {
        path: '/ds',
        component: () => import('../Layout.vue'),
        redirect: '/ds/core',
        children: [
            {
                path: '/ds/core',
                name: 'Core',
                component: () => import('../views/core/index.vue'),
            },{
                path: '/ds/retain',
                name: 'Retain',
                component: () => import('../views/retain/index.vue'),
            },{
                path: '/ds/cash',
                name: 'Cash',
                component: () => import('../views/cash/index.vue'),
            },{
                path: '/ds/use',
                name: 'Use',
                component: () => import('../views/use/index.vue'),
            },{
                path: '/ds/vip',
                name: 'Vip',
                component: () => import('../views/vip/index.vue'),
            },{
                path: '/ds/user',
                name: 'User',
                component: () => import('../views/user/index.vue'),
            },{
                path: '/ds/channel',
                name: 'Channel',
                component: () => import('../views/channel/index.vue'),
            },
        ]
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router
